-- GENERATED SPELL FOR [Leper Gnome] --


function spell0_1211(pUnit, Event) --@Decayed Strength,n/a--
pUnit:FullCastSpellOnTarget(6951,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1211', 2000, 1)
end

function Sorts_1211(pUnit, Event)
local choix_sorts_1211 = math.random(0, 0)
if choix_sorts_1211 == 0 then
pUnit:RegisterEvent('spell0_1211', 1, 1)
end
end

function mob1211_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1211', math.random(1500, 3000), 1)
end

function mob1211_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1211_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1211_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1211, 1, 'mob1211_Action')
RegisterUnitEvent(1211, 2, 'mob1211_Leave')
RegisterUnitEvent(1211, 3, 'mob1211_Kill')
RegisterUnitEvent(1211, 4, 'mob1211_Die')
